#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
//	system("start https://www.lanqiao.cn/problems/325/learning/");

    int ans = 0;
    string s;

    while(cin >> s)	ans += s.size();
    cout << ans;

    return 0;
}

